{{- $page := . }}
{{- with index $page }}
{{- partial "partials/inline/menu/usefullinks/walk.html" (dict "page" $page "menuEntries" .) }}
{{- end }}

{{- define "partials/inline/menu/usefullinks/walk.html" }}
{{- $page := .page }}
{{- range  $index, $item := .menuEntries }}
{{- if $item.HasChildren}}
<h4>{{$item.Name}}</h4>
{{ if (isset $item.Params "description") }}
<p>{{ $item.Params.Description }}</p>
{{ end }}
<ul>
    {{- with $item.Children }}
    {{- partial "partials/inline/menu/usefullinks/walk.html" (dict "page" $page "menuEntries" .) }}
    {{- end }}
</ul>
{{- else }}
<li><i class="bx bx-chevron-right"></i> <a href="{{$item.URL}}">{{$item.Name}}</a></li>
{{- end }}
{{- end }}
{{- end }}
